package com.tianyi.primeval.data;

import com.tianyi.primeval.Primeval;
import com.tianyi.primeval.registry.PLComboRegsitry;
import com.tianyi.primeval.registry.PLSpecialEffectsRegistry;
import com.tianyi.primeval.registry.PLslashArtRegsitry;
import mods.flammpfeil.slashblade.item.SwordType;
import mods.flammpfeil.slashblade.registry.SlashArtsRegistry;
import mods.flammpfeil.slashblade.registry.slashblade.EnchantmentDefinition;
import mods.flammpfeil.slashblade.registry.slashblade.PropertiesDefinition;
import mods.flammpfeil.slashblade.registry.slashblade.RenderDefinition;
import mods.flammpfeil.slashblade.registry.slashblade.SlashBladeDefinition;
import net.minecraft.data.worldgen.BootstapContext;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.Enchantments;
import net.minecraftforge.registries.ForgeRegistries;

import java.util.List;

public class SRelicBuiltInRegsitry {
    //示例1
    //public static final ResourceKey<SlashBladeDefinition> START=register("none_blue");
    //示例2
    //public static final ResourceKey<SlashBladeDefinition> NONE=register("none_red");
    //大风来
    public static final ResourceKey<SlashBladeDefinition> WIND=register("big_wind");
    //光之舞
    public static final ResourceKey<SlashBladeDefinition> DANCE_LIGHT=register("dance_of_light");
    //寂虚之光
    public static final ResourceKey<SlashBladeDefinition> JIXU=register("jixu");
    //奇迹
    public static final ResourceKey<SlashBladeDefinition> MIRACLE=register("miracle");
    //墨萤_5形
    public static final ResourceKey<SlashBladeDefinition> MOYING=register("moying");
    //樱之舞
    public static final ResourceKey<SlashBladeDefinition> SUKURA=register("sakura_dance");
    //清风拂尘
    public static final ResourceKey<SlashBladeDefinition> STRONG_WIND=register("strong_wind");
    //星之坠
    public static final ResourceKey<SlashBladeDefinition> FALLING_STAR=register("the_falling_star");
    //空白
    public static final ResourceKey<SlashBladeDefinition> VOID=register("void");
    //阳
    public static final ResourceKey<SlashBladeDefinition> YANG=register("yang");
    //阴
    public static final ResourceKey<SlashBladeDefinition> YIN=register("yin");
    //阴阳纵横
    public static final ResourceKey<SlashBladeDefinition> YINYANG=register("yinyang");
    //血雨腥风
    public static final ResourceKey<SlashBladeDefinition> XUESE =register("xuese");
    //裁决
    public static final ResourceKey<SlashBladeDefinition> CAIJUE =register("caijue");
    //始源神录
    public static final ResourceKey<SlashBladeDefinition> SHIYUANEX =register("shiyuanex");
    //始源星
    public static final ResourceKey<SlashBladeDefinition> SHIYUAN =register("shiyuan");
    public static void registerAll(BootstapContext<SlashBladeDefinition> bootstrap) {
        //bootstrap.register(START,
        //        new SlashBladeDefinition(Srelic.prefix("none_blue"),
        //                RenderDefinition.Builder.newInstance()
        //                        .textureName(Srelic.prefix("model/stairail/none_blue.png"))//贴图地址
        //                        .modelName(Srelic.prefix("model/stairail/none.obj"))//模型地址
        //                        .effectColor(2003199)//刀光颜色
        //                        .build(),
        //                PropertiesDefinition.Builder.newInstance()
        //                        .baseAttackModifier(15)//伤害
        //                        .defaultSwordType(List.of(SwordType.BEWITCHED))//刀的类型
        //                        .slashArtsType(SlashArtsRegistry.VOID_SLASH.getId())//这是SA
        //                        .addSpecialEffect(PLSpecialEffectsRegistry.FLAMEROSION.getId())//这是SE
        //                        .maxDamage(80)//耐久
        //                        .build(),
        //                List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 3),//附魔，最后一个不要打句号
        //                        new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 3),
        //                        new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 3)
        //                )));

        //bootstrap.register(NONE,
        //        new SlashBladeDefinition(Srelic.prefix("none_red"),
        //                RenderDefinition.Builder.newInstance()
        //                        .textureName(Srelic.prefix("model/stairail/none_red.jpg"))
        //                        .modelName(Srelic.prefix("model/stairail/none.obj"))
        //                        .effectColor(13504014)
        //                        .build(),
        //                PropertiesDefinition.Builder.newInstance()
        //                        .baseAttackModifier(21)
        //                        .defaultSwordType(List.of(SwordType.BEWITCHED))
        //                        .slashArtsType(SRslashArtRegsitry.FORDEADCRY.getId())
        //                        .maxDamage(80)
        //                        .build(),
        //                List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 9),
        //                        new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 5),
        //                        new EnchantmentDefinition(getEnchantmentID(Enchantments.SMITE), 7),
        //                       new EnchantmentDefinition(getEnchantmentID(Enchantments.SWEEPING_EDGE), 4),
        //                        new EnchantmentDefinition(getEnchantmentID(Enchantments.MENDING), 1)
        //                )));
        bootstrap.register(WIND,
                new SlashBladeDefinition(Primeval.prefix("big_wind"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/strong_wind.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/dance_of_light.obj"))//模型地址
                                .effectColor(8058623)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(12)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))//刀的类型
                                .slashArtsType(SlashArtsRegistry.CIRCLE_SLASH.getId())//SA
                                .maxDamage(1122)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.FALL_PROTECTION), 3),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.PROJECTILE_PROTECTION), 3),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 3)
                        )));
        bootstrap.register(DANCE_LIGHT,
                new SlashBladeDefinition(Primeval.prefix("dance_of_light"),
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/dance_of_light.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/dance_of_light.obj"))//模型地址
                                .effectColor(16187322)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(10)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(SlashArtsRegistry.CIRCLE_SLASH.getId())//SA
                                .maxDamage(1024)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 3),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 2),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.MOB_LOOTING), 2),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 3)
                        )));
        bootstrap.register(JIXU,
                new SlashBladeDefinition(Primeval.prefix("jixu"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/jixu.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/jixu.obj"))//模型地址
                                .effectColor(11908533)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(32)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLslashArtRegsitry.HUANYING_GAI.getId())//SA
                                .maxDamage(2222)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.FALL_PROTECTION), 2),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.PROJECTILE_PROTECTION), 2),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 4),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 3)
                        )));
        bootstrap.register(MIRACLE,
                new SlashBladeDefinition(Primeval.prefix("miracle"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/miracle.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/miracle.obj"))//模型地址
                                .effectColor(9961330)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(40)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLComboRegsitry.BIGDRIVE_VERTICAL.getId())//SA
                                .addSpecialEffect(PLSpecialEffectsRegistry.PRIMEVALT.getId())//这是SE
                                .addSpecialEffect(PLSpecialEffectsRegistry.PRIMEVALTY.getId())
                                .maxDamage(2024)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 20),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.THORNS), 3),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.FALL_PROTECTION), 4),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.SWEEPING_EDGE), 3),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 5),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.MOB_LOOTING), 3),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 5)
                        )));
        bootstrap.register(MOYING,
                new SlashBladeDefinition(Primeval.prefix("moying"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/moying.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/moying.obj"))//模型地址
                                .effectColor(15662966)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(12)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLslashArtRegsitry.LIANZHAN.getId())//SA
                                .maxDamage(10240)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 40),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.PROJECTILE_PROTECTION), 2),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.FALL_PROTECTION), 2)
                        )));
        bootstrap.register(SUKURA,
                new SlashBladeDefinition(Primeval.prefix("sakura_dance"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/sakura_dance.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/sakura_dance.obj"))//模型地址
                                .effectColor(16759529)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(3)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(SlashArtsRegistry.JUDGEMENT_CUT.getId())//SA
                                .addSpecialEffect(PLSpecialEffectsRegistry.YINGYU.getId())
                                .maxDamage(520)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 3),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 2)
                        )));
        bootstrap.register(STRONG_WIND,
                new SlashBladeDefinition(Primeval.prefix("strong_wind"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/strong_wind.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/strong_wind.obj"))//模型地址
                                .effectColor(8058623)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(18)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLslashArtRegsitry.WIND_IS_VLOWING.getId())//SA
                                .addSpecialEffect(PLSpecialEffectsRegistry.SHENFENG.getId())
                                .maxDamage(1444)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 12) ,//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 4),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.FALL_PROTECTION), 4),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.BLAST_PROTECTION), 4),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 3)

                        )));
        bootstrap.register(FALLING_STAR,
                new SlashBladeDefinition(Primeval.prefix("the_falling_star"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/the_falling_star.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/the_falling_star.obj"))//模型地址
                                .effectColor(1744894)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(14)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLslashArtRegsitry.HUANYING_GAI.getId())//SA
                                .maxDamage(888)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 5),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.SWEEPING_EDGE), 1),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 1),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.MOB_LOOTING), 1),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 3)
                        )));
        bootstrap.register(VOID,
                new SlashBladeDefinition(Primeval.prefix("void"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/void.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/void.obj"))//模型地址
                                .effectColor(16774471)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(3)//伤害
                                .defaultSwordType(List.of(SwordType.ENCHANTED))
                                .slashArtsType(SlashArtsRegistry.DRIVE_VERTICAL.getId())//SA
                                .maxDamage(20240)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 5)//附魔（不要忘了最后一个不要写句号）
                        )));
        bootstrap.register(YANG,
                new SlashBladeDefinition(Primeval.prefix("yang"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/yang.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/yinyang.obj"))//模型地址
                                .effectColor(16777215)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(10)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLslashArtRegsitry.LIANZHANB.getId())//SA
                                .maxDamage(989)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SMITE), 5),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 3)
                        )));
        bootstrap.register(YIN,
                new SlashBladeDefinition(Primeval.prefix("yin"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/yin.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/yinyang.obj"))//模型地址
                                .effectColor(0)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(10)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLslashArtRegsitry.LIANZHAN.getId())//SA
                                .maxDamage(898)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.BANE_OF_ARTHROPODS), 5),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 3)
                        )));
        bootstrap.register(YINYANG,
                new SlashBladeDefinition(Primeval.prefix("yinyang"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/yinyang.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/strong_wind.obj"))//模型地址
                                .effectColor(8487297)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(34)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLslashArtRegsitry.ERTIAN.getId())//SA
                                .addSpecialEffect(PLSpecialEffectsRegistry.YINYANGJIAN.getId())//这是SE
                                .maxDamage(9898)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.MENDING), 11),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.SMITE), 5),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.BANE_OF_ARTHROPODS), 5),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.MOB_LOOTING), 3),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 2),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 3)
                        )));
        bootstrap.register(XUESE,
                new SlashBladeDefinition(Primeval.prefix("xuese"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/xuese.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/xuese.obj"))//模型地址
                                .effectColor(16717848)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(21)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLComboRegsitry.XUE_YU.getId())//SA
                                .maxDamage(10000)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 10),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.SMITE), 5),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.BANE_OF_ARTHROPODS), 5),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.MOB_LOOTING), 3),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 5)
                        )));
        bootstrap.register(CAIJUE,
                new SlashBladeDefinition(Primeval.prefix("caijue"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/caijue.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/caijue.obj"))//模型地址
                                .effectColor(166655)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(3)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLComboRegsitry.LIANZHANB.getId())//SA
                                .maxDamage(500)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 10)//附魔（不要忘了最后一个不要写句号）
                        )));
        bootstrap.register(SHIYUANEX,
                new SlashBladeDefinition(Primeval.prefix("shiyuanex"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/shiyuanex.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/shiyuanex.obj"))//模型地址
                                .effectColor(9917695)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(32)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLComboRegsitry.SILIEEX.getId())//SA
                                .addSpecialEffect(PLSpecialEffectsRegistry.XINGHUN.getId())
                                .maxDamage(7000)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 5),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.SMITE), 5),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 3),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 5)
                        )));
        bootstrap.register(SHIYUAN,
                new SlashBladeDefinition(Primeval.prefix("shiyuan"),//NBT名称
                        RenderDefinition.Builder.newInstance()
                                .textureName(Primeval.prefix("model/tianyi/shiyuan.png"))//贴图地址
                                .modelName(Primeval.prefix("model/tianyi/shiyuan.obj"))//模型地址
                                .effectColor(9917695)//颜色
                                .build(),
                        PropertiesDefinition.Builder.newInstance()
                                .baseAttackModifier(18)//伤害
                                .defaultSwordType(List.of(SwordType.BEWITCHED))
                                .slashArtsType(PLComboRegsitry.SILIE.getId())//SA
                                .addSpecialEffect(PLSpecialEffectsRegistry.XINGHUN.getId())
                                .maxDamage(4000)//耐久
                                .build(),
                        List.of(new EnchantmentDefinition(getEnchantmentID(Enchantments.SHARPNESS), 3),//附魔（不要忘了最后一个不要写句号）
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.POWER_ARROWS), 2),
                                new EnchantmentDefinition(getEnchantmentID(Enchantments.UNBREAKING), 5)
                        )));
    }




    private static ResourceKey<SlashBladeDefinition> register(String id) {
        return ResourceKey.create(SlashBladeDefinition.REGISTRY_KEY, Primeval.prefix(id));
    }
    public static ResourceLocation getEnchantmentID(Enchantment enchantment) {
        return ForgeRegistries.ENCHANTMENTS.getKey(enchantment);
    }

}
